paned: minus the size by the handle for the for_child1 computation.
authorAlban Browaeys <prahal@yahoo.com>
Wed, 7 Aug 2013 16:46:07 +0000 (18:46 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 14 Aug 2013 04:10:08 +0000 (00:10 -0400)
commit6ea4c1a1f4bd42eac4b0384c390be6732a02763f
tree6e6f63227659724b07c40e4345aae5e711061614
parentb7e41a7eda1d01dc48b54d5d91916f2f737fceff
paned: minus the size by the handle for the for_child1 computation.

Fixes:
(rhythmbox:22802): Gtk-CRITICAL **:
_gtk_widget_get_preferred_size_for_size: assertion 'size >= -1' failed

that is gtk_paned_get_preferred_size_for_opposite_orientation calls
_gtk_widget_get_preferred_size_for_size on child2 with a negative
size.

As gtkpaned size was (32), child1 minimum size was (55) then
for_child1 became (32) for an handle_size of (5). Thus for_child2
ended up as (-5).

https://bugzilla.gnome.org/show_bug.cgi?id=705624
gtk/gtkpaned.c